<?php

namespace Partner\Controller;
use Think\Controller;
use Think\Auth;
use Partner\Model\Menu;

class ComController extends Controller{

    public function _initialize() {
        $this->Seller = Auth::getSeller();
        if(!$this->Seller){
            $this->redirect('Login/index');
        }
        $leftMenu = menu::init();
        //dump($leftMenu);die;
        $this->assign('seller',$this->Seller);
        $this->assign('leftMenu',$leftMenu);
    }

}
